package demo1;

import demo3.Operation;

import java.util.Arrays;

public class BookList {
    private Book[] book=new Book[]{
            new Book("三国演义","罗贯中",40),
            new Book("水浒传","施耐庵",35),
            new Book("西游记","吴承恩",50),
            new Book("红楼梦","曹雪芹",60),
    };
    private int size=4;

    public int getSize() {
        return size;
    }


    public void setSize(int size) {
        this.size = size;
    }

    public Book getBook(int i) {
     return  book[i];
    }

    public void setBook(Book[] book) {
        this.book = book;
    }



}
